package com.cspg.design.ui.project;

import androidx.appcompat.app.AppCompatActivity;

import android.content.Intent;
import android.os.Bundle;
import android.widget.TableLayout;

import com.cspg.design.R;
import com.cspg.design.presenter.ProjectPresenter;
import com.cspg.design.utils.ActionBarUtil;
import com.cspg.design.utils.AppManager;
import com.cspg.design.utils.StatusBarUtil;
import com.cspg.design.widget.ToastUtils;

public class FlowActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_flow);
        AppManager.getAppManager().addActivity(this);
        StatusBarUtil.setStatusBarColor(this, R.color.colorPrimary);
        ActionBarUtil.setActionBar(this, R.string.review_info);
        TableLayout flowTb = findViewById(R.id.flow_tb);
        Intent intent = getIntent();
        String projectId = intent.getStringExtra("projectId");
        if (projectId == null)
        {
            ToastUtils.toast(this,"项目ID获取失败");
            return;
        }
        ProjectPresenter projectPresenter = new ProjectPresenter(this);
        projectPresenter.getProjectFlow(projectId, flowTb);

    }
}